/*******************************************************************************
 * Copyright (c) 2011 squid.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * 
 * Contributors:
 *     squid - initial API and implementation
 ******************************************************************************/
package com.google.code.cubeirc.connection;

import org.apache.log4j.Level;
import org.pircbotx.PircBotX;

import com.google.code.cubeirc.common.ApplicationInfo;
import com.google.code.cubeirc.debug.DebuggerQueue;
import com.google.code.cubeirc.queue.MessageQueue;
import com.google.code.cubeirc.queue.MessageQueueEnum;

public class CubeIRC extends PircBotX {
	public static final String VERSION = ApplicationInfo.APP_FULL;
	
	
	public CubeIRC() {
		
//		setVerbose(true);
		addDebug(Level.INFO, "CubeIRC connection initialized");
		addDebug(Level.INFO, "CubeIRC version %s", VERSION);
		
	}
	
	private void addDebug(Level level, String text, Object ... args)
	{
		DebuggerQueue.addDebug(this, level, text, args);
	}
	
	@Override
	public void log(String line) {
		MessageQueue.addQueue(MessageQueueEnum.IRC_LOGDATA, line);	
	}
	
	
	
	

}
